# 构造方法

class Student:
    age=None
    name=None
    tel=None
    def __init__(self,name,age,tel):
        self.name = name
        self.age = age
        self.tel = tel
        print("我会自动执行")

user1=Student("leo","18","123456789")
# user1=Student()
# user1.name="leo"
# user1.age=18
# user1.tel="12345678"
print(user1.name)
